package com.GGG.cloud.house.domain.entity;

import javax.persistence.*;

public class Village {
    @Id
    @Column(name = "_id")
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 村编号
     */
    @Column(name = "village_id")
    private String villageId;

    /**
     * 乡镇ID
     */
    @Column(name = "town_id")
    private String townId;

    /**
     * @return _id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取名称
     *
     * @return name - 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置名称
     *
     * @param name 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取村编号
     *
     * @return village_id - 村编号
     */
    public String getVillageId() {
        return villageId;
    }

    /**
     * 设置村编号
     *
     * @param villageId 村编号
     */
    public void setVillageId(String villageId) {
        this.villageId = villageId;
    }

    /**
     * 获取乡镇ID
     *
     * @return town_id - 乡镇ID
     */
    public String getTownId() {
        return townId;
    }

    /**
     * 设置乡镇ID
     *
     * @param townId 乡镇ID
     */
    public void setTownId(String townId) {
        this.townId = townId;
    }
}